package com.duan.user.feign;

import com.duan.entity.Result;
import com.duan.user.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(name = "user")
public interface UserFeign {
    /**
     * 条件查询
     *
     * @param user
     * @return
     */
    @PostMapping("/User/selectList")
    Result<List<User>> select(@RequestBody User user);
}
